﻿package com.humansampler.jpo.events 
{
	// Importation des classes
	import com.humansampler.jpo.collections.PointCollection;
	import flash.events.Event;
	
	/**
	 * ...
	 * @author ZoulouX
	 */
	public class SampleEvent extends Event 
	{
		// Les types d'event
		public static const REFRESH			:String 				= "refresh";
		
		
		// La collection de points
		protected var _pointsCollection		:PointCollection;
		
		
		// Les getters
		public function get pointsCollection():PointCollection
		{
			return _pointsCollection;
		}
		
		
		// Les setters
		public function set pointsCollection(value:PointCollection):void 
		{
			_pointsCollection = value;
		}
		
		
		// Le constructeur
		public function SampleEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false) 
		{ 
			super(type, bubbles, cancelable);		
		}
		
		
		public override function clone():Event 
		{ 
			return new SampleEvent(type, bubbles, cancelable);
		}
		
		public override function toString():String 
		{ 
			return formatToString("SampleEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
	}
}